package jwebtest.quartz;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Trigger;

public class TJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {

		Trigger tg = context.getTrigger();
		System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\t" + tg.getJobKey().getName() + "=" + tg.getJobKey().getGroup());
	}

}